set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -pthread  -fPIC ")

message(STATUS "logcplus_test CMAKE_CXX_FLAGS  " ${CMAKE_CXX_FLAGS})

include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/src)
include_directories(${PROJECT_SOURCE_DIR}/src/base)

LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/lib)
LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/Debug/lib)

##set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_INSTALL_PREFIX}/bin/test)

add_executable(logcplus_console_test logcplus_console_test.cpp )
target_link_libraries(logcplus_console_test logcplus)

add_executable(logcplus_syslog_test logcplus_syslog_test.cpp )
target_link_libraries(logcplus_syslog_test logcplus)

add_executable(logcplus_file_test logcplus_file_test.cpp )
target_link_libraries(logcplus_file_test logcplus)

add_executable(logcplus_logger_test logcplus_logger_test.cpp )
target_link_libraries(logcplus_logger_test logcplus)

add_executable(logcplus_properties_test logcplus_properties_test.cpp )
target_link_libraries(logcplus_properties_test logcplus)
